docs: add DefaultTraceListener entry to trace listeners table#50120
docs: add DefaultTraceListener entry to trace listeners table#50120abhiramch018 wants to merge 1 commit intodotnet:mainfrom
Conversation
### Summary Added the missing `DefaultTraceListener` entry to the trace listeners table in the `.NET Framework` configuration documentation. ### Why The table listing available trace listener classes did not include `DefaultTraceListener`, which caused confusion for users trying to configure it using `app.config`. This listener is automatically included by default in the `Trace.Listeners` collection, but users may want to reference it explicitly in configuration files. ### Change - Added a new row for `DefaultTraceListener` to the trace listener table in `add-element-for-listeners-for-trace.md`. - Clarified its purpose and default behavior in debugging and tracing scenarios. ### Related Issue Fixes dotnet#48559
|
Hi @dotnet/docs team Kindly requesting a quick review when you get a chance Thanks for your time and all the great documentation work you do |
|
Hi @gewarren, |
| |<xref:System.Diagnostics.TextWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.TextWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| | ||
| |xref:System.Diagnostics.DefaultTraceListener?displayProperty=nameWithType|The default trace listener that outputs messages to the Visual Studio Output window or debugger. This listener is automatically included in the `Trace.Listeners` collection unless explicitly removed in the configuration.| |
There was a problem hiding this comment.
I assume the new xref link should have < > around it like the existing ones have.
| |<xref:System.Diagnostics.TextWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.TextWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| | ||
| |xref:System.Diagnostics.DefaultTraceListener?displayProperty=nameWithType|The default trace listener that outputs messages to the Visual Studio Output window or debugger. This listener is automatically included in the `Trace.Listeners` collection unless explicitly removed in the configuration.| |
There was a problem hiding this comment.
The second column of this table is "initializeData attribute value", but DefaultTraceListener does not support initializeData. Instead of describing the purpose of DefaultTraceListener, the new row should state that initializeData is not used with that type of listener.
| |<xref:System.Diagnostics.EventSchemaTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.EventSchemaTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.TextWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.TextWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| | ||
| |<xref:System.Diagnostics.XmlWriterTraceListener?displayProperty=nameWithType>|The name of the file that the <xref:System.Diagnostics.XmlWriterTraceListener> writes to.| |
There was a problem hiding this comment.
There is another similar table here:
Summary
Added the missing
DefaultTraceListenerentry to the trace listeners table in the.NET Frameworkconfiguration documentation.Why
The table listing available trace listener classes did not include
DefaultTraceListener, which caused confusion for users trying to configure it usingapp.config. This listener is automatically included by default in theTrace.Listenerscollection, but users may want to reference it explicitly in configuration files.Change
DefaultTraceListenerto the trace listener table inadd-element-for-listeners-for-trace.md.Related Issue
Fixes #48559
Summary
Describe your changes here.
Fixes #Issue_Number (if available)
Internal previews